package com.panopset.game.card;

import com.panopset.game.Anibreaker;
import com.panopset.game.blackjack.BlackjackConfig;

public class ChipPainter {

    public final BlackjackConfig c;
    private final Anibreaker ab;

    public ChipPainter(BlackjackConfig config, int mapW, int mapH) {
        c = config;
        ab = new Anibreaker(c, mapW, mapH, 4, 2);
    }

    public int getChipWidth() {
        return ab.getDspWidth();
    }

    public int getChipHeight() {
        return ab.getDspHeight();
    }

    public int[] getPaintDimensions(Chip chip, int x, int y) {
        return ab.getPaintDimensions(chip.getOffsetW(), chip.getOffsetH(), x, y);
    }

}
